package com.java01;

import java.util.Scanner;

public class fifth {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入a-g中任意一个字母：");
        String s = scanner.next();
        switch (s){
            case "a":
                System.out.println("今天是星期一");break;
            case "b":
                System.out.println("今天是星期二");break;
            case "c":
                System.out.println("今天是星期三");break;
            case "d":
                System.out.println("今天是星期四");break;
            case "e":
                System.out.println("今天是星期五");break;
            case "f":
                System.out.println("今天是星期六");break;
            case "g":
                System.out.println("今天是星期日");break;
            default:
                System.out.println("输入错误！");
        }
    }
}

class float01{
    public static void main(String[] args) {
        char a = 97;
        char s = 'b';
        switch (a){
            case 97:
                System.out.println("111");
        }
    }
}

class exercise{
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入小写英文字母（a-e）:");
        char c = scanner.next().charAt(0);
        switch (c){
            case 'a':
            case 'b':
            case 'c':
            case 'd':
            case 'e':
                System.out.println((char) (c - 32));break;
            default:
                System.out.println("other");
        }
    }
}

class exercise02{
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入成绩：");
        int score = scanner.nextInt();
        int a = score / 60;
        if (score >= 0 && score <= 100) {
            switch (a) {
                case 1:
                    System.out.println("合格");
                    break;
                case 0:
                    System.out.println("成绩不合格");
            }
        }else {
            System.out.println("输入成绩有误！");
        }
    }

}

